package com.ecut.property_project.service.building;

import com.ecut.property_project.mapper.building.BuildingPurposeMapper;
import com.ecut.property_project.model.building.BuildingPurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BuildingPurposeService{

    @Resource
    private BuildingPurposeMapper buildingPurposeMapper;

    
    public int deleteByPrimaryKey(Integer purposeId) {
        return buildingPurposeMapper.deleteByPrimaryKey(purposeId);
    }

    
    public int insert(BuildingPurpose record) {
        return buildingPurposeMapper.insert(record);
    }

    
    public int insertSelective(BuildingPurpose record) {
        return buildingPurposeMapper.insertSelective(record);
    }

    public List<BuildingPurpose> selectAll(){ return buildingPurposeMapper.selectAll(); }

    public List<BuildingPurpose> selectByPage(Integer page, Integer pageSize){return buildingPurposeMapper.selectByPage(page,pageSize);}


    public BuildingPurpose selectByPrimaryKey(Integer purposeId) {
        return buildingPurposeMapper.selectByPrimaryKey(purposeId);
    }

    public List<BuildingPurpose> selectByHeadId(String headId){
        return buildingPurposeMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(BuildingPurpose record) {
        return buildingPurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BuildingPurpose record) {
        return buildingPurposeMapper.updateByPrimaryKey(record);
    }

}
